<!DOCTYPE html>
<html>
	<head>
		<include file="appapi@head"/>
		<title>{:lang('添加上级')}</title>
		<link href='__STATIC__/appapi/css/agent.css' rel="stylesheet" type="text/css" >
	</head>
<body  style="background:#fff">

	<div class="setcode">
		<div class="{:lang('agent_agent_top')}"></div>
		<if condition="$agentinfo">
		<div class="mycode">
			{:lang('请输入上级邀请码')}：<br>
			
			<span class="code">
				<volist name="code_a" id="vo">
				<i>{$vo}</i>
				</volist>
				<input type="text" id="code" maxlength="6" onkeyup="value=value.replace(/[\W]/g,'')" value="{$agentinfo['code']}" disabled>
			</span>
		</div>
		<div class="tips">
			{:lang('邀请须知')}：<br>
			{:lang('请仔细填写对方的邀请码，填写后不可更改')}
		</div>
		<else/>
		<div class="mycode">
			{:lang('请输入上级邀请码')}：<br>
			<span class="code">
				<i>&nbsp;</i>
				<i>&nbsp;</i>
				<i>&nbsp;</i>
				<i>&nbsp;</i>
				<i>&nbsp;</i>
				<i>&nbsp;</i>
				<input type="text" id="code" maxlength="6" onkeyup="value=value.replace(/[\W]/g,'')">
			</span>
		</div>
		<div class="tips">
			{:lang('邀请须知')}：<br>
			{:lang('请仔细填写对方的邀请码，填写后不可更改')}
		</div>
		<div class="submit button_default">
			{:lang('确定')}
		</div>
		</if>
	</div>

	<include file="appapi@footer"/>
    <include file="appapi@scripts"/>
	<script>
		var uid='{$uid|default=''}';
		var token='{$token|default=''}';
		var baseSize = 100;
		function setRem () {
		  var scale = document.documentElement.clientWidth / 750;
		  document.documentElement.style.fontSize = (baseSize * Math.min(scale, 3)) + 'px';
		}
		setRem();
		window.onresize = function () {
		  setRem();
		}
	</script>
	<script src="__STATIC__/appapi/js/agent.js"></script>

</body>
</html>